// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /cropGrowthIndicators/get/crop/data */
export async function getCropData(
  body: API.CropGrowthGrowthIndicatorQueryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseGrowthAnalysisResponseVO>('/cropGrowthIndicators/get/crop/data', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /cropGrowthIndicators/get/field/list */
export async function getFieldList(options?: { [key: string]: any }) {
  return request<API.BaseResponseSetInteger>('/cropGrowthIndicators/get/field/list', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /cropGrowthIndicators/get/latest/color */
export async function getLatestColor(options?: { [key: string]: any }) {
  return request<API.BaseResponseFieldLeafColorSumVO>('/cropGrowthIndicators/get/latest/color', {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /cropGrowthIndicators/get/maturity/rate */
export async function getMaturityRateData(options?: { [key: string]: any }) {
  return request<API.BaseResponseMaturityRateVO>('/cropGrowthIndicators/get/maturity/rate', {
    method: 'GET',
    ...(options || {}),
  })
}
